// JavaScript Document
function check(){
	aform=document.getElementById("reg");
		if(aform.uid.value.length != 4 || isNaN(aform.uid.value)){
			alert("配合一下，ID填手机号后四位");
	    }else if(aform.uname.value.length > 5 || aform.uname.value.length == 0){
			alert("名字有些诡异");
		}else if(aform.pass.value.length > 18 || aform.pass.value == ""){
			alert("密码有些诡异");
		}else if(aform.dep.value.length > 22 || aform.dep.value.length < 2){
			alert("部门名称有毒。。。");
		}else{
			reg.submit();
		}
}